package com.manage.func.activity.service.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.manage.base.service.impl.BaseServiceImpl;
import com.manage.func.activity.dao.IActivityDao;
import com.manage.func.activity.model.ActivityBean;
import com.manage.func.activity.model.ActivityVsUserBean;
import com.manage.func.activity.service.IActivityService;

@Service("activityServiceManage")
public class ActivityServiceImpl
		extends BaseServiceImpl<ActivityBean>
		implements IActivityService {

	@Autowired
	IActivityDao dao;

	@Override
	public List<ActivityBean> selectActivityList(ActivityBean bean) {
		return dao.selectActivityList(bean);
	}

	@Override
	public int insertActivity(ActivityBean queryBean) {
		return dao.insertActivity(queryBean);
	}

	@Override
	public int deleteActivity(ActivityBean queryBean) {
		return dao.deleteActivity(queryBean);
	}

	@Override
	public int updateActivity(ActivityBean queryBean) {
		return dao.updateActivity(queryBean);
	}

	@Override
	public int selectTotalCount(ActivityBean queryBean) {
		return dao.selectTotalCount(queryBean);
	}

	@Override
	public List<ActivityVsUserBean> selectActivityUserList(ActivityBean bean) {
		return dao.selectActivityUserList(bean);
	}

	@Override
	public int selectActivityUserCount(ActivityBean queryBean) {
		return dao.selectActivityUserCount(queryBean);
	}

	@Override
	public ActivityBean selectActivityById(ActivityBean bean) {
		return dao.selectActivityById(bean);
	}
}
